package com.anuo.app.common.entity;


import com.anuo.app.common.utils.IdUtil;
import com.anuo.app.common.utils.Utils;
import com.anuo.app.modules.system.entity.Fileinfo;
import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;
import java.util.List;

public class EntityBase {

    protected String id;
    protected RowState rowState;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    protected Date createdate;
    @JsonFormat(shape=JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss")
    protected Date updatedate;
    private List<Fileinfo> fileinfoList;

    public List<Fileinfo> getFileinfoList() {
        return fileinfoList;
    }

    public void setFileinfoList(List<Fileinfo> fileinfoList) {
        this.fileinfoList = fileinfoList;
    }

    public Date getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(Date updatedate) {
        this.updatedate = updatedate;
    }

    public void preInsert() {
        id= IdUtil.getUUID();
        createdate=new Date();//DateUtil.getCurrentDateTime();
    }

    public void setCreatedate(Date createdate) {
        this.createdate = createdate;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public Date getCreatedate() {
        return createdate;
    }


    public RowState getRowState() {
        return rowState;
    }

    public void setRowState(RowState rowState) {
        this.rowState = rowState;
    }

}
